package com.zdya.combatdocuments.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotNull;
import java.util.List;

/**
 * 用户聊天记录表
 */
@AllArgsConstructor
@NoArgsConstructor
@Data
@TableName("user_chat")
public class UserChat {

    @ApiModelProperty(value = "主键")
    @TableId(value = "id",type = IdType.AUTO)
    private Long id;

    @NotNull
    @ApiModelProperty(value = "发送方id")
    private Long fromId;

    @NotNull
    @ApiModelProperty(value = "接收方id")
    private Long toId;

    @NotNull
    @ApiModelProperty(value = "消息内容")
    private String content;

    @NotNull
    @ApiModelProperty(value = "0-文字；1-图片；2-文件")
    private Integer type;

    @NotNull
    @ApiModelProperty(value = "网络")
    private Long netId;

    @ApiModelProperty(value = "创建时间")
    private Long createDate;

    @ApiModelProperty(value = "文件原名")
    private String originalFilename;

    @ApiModelProperty(value = "文书状态 0 已发送 1 待处理 2 回传处理中 3 已处理 4 已完成")
    private String documentStatus;

    @ApiModelProperty(value = "转发状态 0 否 1 是 2 回传")
    private String forward;

    @ApiModelProperty(value = "消息是否成功状态 0 成功 1 失败")
    private String success;

    private String serialNum;

    private Long documentId;

    @ApiModelProperty(value = "发起方账号")
    private String sender;

    @ApiModelProperty(value = "接收方账号")
    private String toAccount;
}
